import os, sys

path = os.path.dirname( os.path.abspath(__file__) )

moduleList = [ f[:-3] for f in os.listdir(path) if f.endswith('py') ]

for moduleName in moduleList:
    if moduleName == '__init__':
        continue

    module = __import__('.'.join([__name__, moduleName]), fromlist=[moduleName])
    classes = [ getattr(module, x) for x in dir(module)
                                      if isinstance(getattr(module, x), type) ]

    for cls in classes:
        globals()[cls.__name__] = cls

del os, sys, path, moduleList, f, moduleName, module, classes, x, cls
